<?

$protocolo = $_SESSION["protocolo"];
$query = "select id_pap, datos_clinicos from pap where numero_protocolo = " . $protocolo;
$datosPap = GetSQL($query);
$idPap = $datosPap[0]["id_pap"];
$datosClinicos = $datosPap[0]["datos_clinicos"];
$pap = GetSelected("select id_desc_microscopica from pap_desc_microscopica where id_pap = '" . $idPap . "'");

$titulo = utf8_encode(GetValue("tituloPap"));
$subtitulo = utf8_encode(GetValue("subtituloPap"));

if (is_numeric($idPap))
{
    $diagnostico = GetSelected("select codigo_diagnostico_pap from pap_diagnostico_pap where id_pap = " . $idPap);
}
include 'encabezadoInforme.php';
echo "<hr/>";
include_once 'imprimirEncabezado.php';
echo "<p>Datos Cl&iacute;nicos: ".$datosClinicos."</p>";
echo "<div>Descripci&oacute;n Microsc&oacute;pica</div>";

include "papStep1Print.php";
echo "<hr/>";
include "papStep2Print.php";
echo "<hr/>";
include "papStep3Print.php";
echo "<hr/>";
include "papDiagnosticoPrint.php";
?>